package skewreduce.framework.planner;

import org.apache.hadoop.conf.Configuration;

import skewreduce.lib.Cube2;
import skewreduce.lib.Partition;
import skewreduce.lsst.Image2DPartition;


public class PartitionerCollection {
	public static Partitioner[] getPartitioners(Partition p,Configuration conf, EaggCostModel model) {
		if ( p instanceof Cube2 ) {
			return Cube2PartitionerCollection.getPartitioner(conf,model);
		} else if ( p instanceof Image2DPartition ) {
			return null;
		}
		throw new UnsupportedOperationException(p.getClass() + " has no partitioner");
	}
}
